home *** CD-ROM | disk | FTP | other *** search
/ Super Screensavers Collection 2.0 / Super Screen Savers Collection.iso / W / Win Force / DELIV.EXE / WINFORCE.WSF < prev    next >
Encoding:
Text File  |  1996-12-03  |  5.4 KB  |  91 lines

  1. -c"This is a WinForce template Script file containing some functions."
  2. -c"Please note that this file is NOT updated with latest news..."
  3. -c"Copy relevant parts of it to your own script, and do appropriate adjustments!"
  4. -c----------------------------------------------------------
  5. -m3"You are supposed to inspect WinForce.WSF to get ideas, not run it!"
  6. -juEN -c"Unconditional jump"
  7. -c----------------------------------------------------------
  8. -!Anteckningar -c"Terminate an application"
  9. -c----------------------------------------------------------
  10. -fWinForce.WSD -c"Create debug file for logging of all funcions executed"
  11. -t"WinForce Running WinForce.WSF..." -c"Change title in window list"
  12. -c----------------------------------------------------------
  13. -22 -c"Wait until attempt to exit is made"
  14. -o"TADA.WAV 1" -c"Play a tune asynchronously..."
  15. -c----------------------------------------------------------
  16. -i"Write - (Namnl÷s)" -c"If instance of this application is not already running..."
  17. -w3 -rWRITE.EXE -c"...the program is started. The windowstyle is adjusted."
  18. -c----------------------------------------------------------
  19. -0"Play CANYON.MID" -c"Play a tune, then..."
  20. -21 -c"...refuse to exit WinForce..."
  21. -e"Mon XXXX-XX-01 08.30.00" -c"...wait for a monday, 1st of any month, 8.30 AM..."
  22. -20 -c"...no longer refuse to exit WinForce..."
  23. -#1999-12-31 -c"...set the current system date..."
  24. -$23.59.59 -c"...and the current system time."
  25. -c----------------------------------------------------------
  26. -1Write -c"Wait for a certain application to be started (by operator or other program)"
  27. -a"Write - (Namnl÷s)" -c"...activate the application..."
  28. -k"Hello there!" -c"...and send keystrokes."
  29. -c----------------------------------------------------------
  30. -h"Write - (Namnl÷s)" -c"Wait for Write to hide (lose focus)..."
  31. -i"MS-DOS-prompt" -c"Thereafter, if instance of this DOS-application is not already running..."
  32. -rDOSPRMPT.PIF -c"...we start it..."
  33. -p"Hello there!^M" -c"...copy some characters to the clipboard..."
  34. -k"% ep" -c"...and paste them to the DOS application using Sendkeys"
  35. -c"Change '% ep' to '% rl' if you use swedish version of Windows"
  36. -?4 -m3"%WSR% How are you today?" -c"Get clipboard contents and give message to user..."
  37. -c----------------------------------------------------------
  38. -iExcel -rExcel -c"Start an application..."
  39. -bC:\ -?0C:\DSKSPACE.TXT -c"...check free disk space on drive C:..."
  40. -?116 -c"...or check status of Shift key (virtual key code 16)..."
  41. -?3Abba -??"Enter your favourite pop group!" -c"...or prompt operator for input..."
  42. -v"Excel|Sheet1!R1C1 %WSR%" -c"...and poke a value to it."
  43. -q"Excel|Sheet1!R1C2 1234" -c"Wait for an application to return expected DDE value..."
  44. -?5"Excel|Sheet1!R1C3" -c"..read a DDE value..."
  45. -c"Change 'Sheet1' to 'Blad1' if you use swedish version of Excel."
  46. -?5"FLAPP1.SHAREUSR|RTDB!A_SEC" -c"An example from another app; Read DDE value..."
  47. -m3"Data: %WSR%" -c"And show the read data in a message box."
  48. -c----------------------------------------------------------
  49. -c"When running a script like this..."
  50. -iExc -rC:\EXCEL\EXCEL -kmsPressEnter! -:00 -d00.00.05 -?5"Excel|Sheet1!R1C1" -j=00 -%WSR% -v"Excel|Sheet1!R1C1 " -ju00
  51. -c"...one Script function at a time may be passed to WinForce using a control inside the client application."
  52. -c"The example uses Excel, but it could be any application working as a DDE server."
  53. -c"Change 'Sheet1' to 'Blad1' if you use swedish version of Excel."
  54. -c----------------------------------------------------------
  55. -?pCOM1:19200,n,8,1 -c"Set serial port parameters..."
  56. -?s"Excel Row 1 column 3 contained: %WSR%!" -c"...send a message..."
  57. -?r00.01.00 -?pCOM1: -c"...receive an answer within 1 minute and thereafter close the serial port..."
  58. -m3"Answer: %WSR%" -c"...and show the received message."
  59. -c----------------------------------------------------------
  60. -m2"You now have to wait a while, sorry!" -c"Prevent the operator to do anything."
  61. -d01.02.03 -c"Wait for 1 hour, two minutes and three seconds..."
  62. -m0 -c"Unload the MessageBox and give control to the operator."
  63. -sAnother.WSF -c"...and start another WinForce Script file."
  64. -c----------------------------------------------------------
  65. -u"MS-DOS-prompt" -c"Wait until a certain application terminated, and..."
  66. -lNewFile.TXT -c"..wait for a certain file to be created by another application...""
  67. -?fNewFile.TXT -c"...read the file..."
  68. -?3"--- Start of file---^M^J%WSR%^M^J--- End of file ---^M^J" -c"...add some headers..."
  69. -?aSaveFile.TXT -c"...and append to savefile..."
  70. -zdNewFile.TXT -c"..and finally delete the file.""
  71. -x0 -c"Terminate Windows..."
  72. -x1 -c"...or restart Windows..."
  73. -x2 -c"...or terminate Windows and reboot..."
  74. -y"C:\DOS\EDIT.COM C:\WINDOWS\WIN.INI" -c"...or terminate Windows, run a DOS program and thereafter restart Windows."
  75. -c----------------------------------------------------------
  76. -c"Change value in target system using 3rd party DDE server"
  77. -t"Change status of I/O"
  78.  
  79. -?fIo.TMP -??"Enter I/O:"
  80. -zdIo.TMP -?aIo.TMP
  81.  
  82. -iMelDDE -rMelDDE -?5MelDDE|Std!%WSR%
  83. -?fValue.TMP -??"%WS1%=%WSR%^MEnter new value:"
  84.  
  85. -iMelDDE -rMelDDE -v"MelDDE|Std!%WS2% %WSR%"
  86. -?5MelDDE|Std!%WS2% -m3"%WS3%=%WSR%"
  87. -c----------------------------------------------------------
  88. -?32E2 -?33.14 -@/%WS1% -m3%WSR% -c"Some calculations"
  89. -c----------------------------------------------------------
  90. -:EN -c"Jump pointer"
  91. -w3 -r"NOTEPAD WinForce.WSF"